package qf.sail.dao;

import qf.sail.entity.OrderItem;

import java.util.List;

public interface OrderItemDao {
    //插入订单子项，返回id
    public Long addOrderItem(OrderItem orderItem);

    //根据订单id，查询订单子项
    public List<OrderItem> getItemsByOrderId(long orderId);

    //插入购物车子项，返回id
    public Long addItemToShopCar(OrderItem orderItem);

    //根据购物车id，查询订单子项
    public List<OrderItem> getItemsByShopCarId(long shopCarId);
}
